package orderManage;

import po.Order;

public class OrderManage_Driver {
	Order order;
	public void drive(OrderManageBLService orderManageBLService){
		boolean loginSucceed=false;
		loginSucceed=orderManageBLService.login("000", "0001");
		if (loginSucceed) {
			System.out.println("Login succeed!\n");
			order=orderManageBLService.getOrder("1");
			orderManageBLService.changeState();
			orderManageBLService.deleteOrder(order);
			orderManageBLService.addOrder(order);
		}
		else {
			System.out.println("you have no rights!");
		}
	}
	public static void main(String[] args){
	    OrderManageBLService s = new OrderManage_Stub(null);	
		new OrderManage_Driver().drive(s);
	}
}
